//
//  HouseKeepesViewController.swift
//  SmartHousekeeper
//
//  Created by 张磊 on 2020/2/20.
//  Copyright © 2020 LS. All rights reserved.
//

import UIKit
//
class HouseKeepesViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Do any additional setup after loading the view.
        self.view.backgroundColor = .white
        
        let noGetCard = UIButton()
        noGetCard.backgroundColor = .black
        noGetCard.setTitle("核验身份", for: .normal)
        self.view.addSubview(noGetCard)
        noGetCard.snp.makeConstraints { (make) in
            make.centerX.equalTo(self.view)
            make.centerY.equalTo(self.view).offset(Adapter(-100))
            make.height.equalTo(Adapter(50))
            make.width.equalTo(Adapter(200))
            
        }
        noGetCard.addTarget(self, action: #selector(noGetCardPushAction), for: .touchUpInside)
        
        let exa = UIButton()
        exa.backgroundColor = .black
        exa.setTitle("未领取业主卡", for: .normal)
        self.view.addSubview(exa)
        exa.snp.makeConstraints { (make) in
            make.centerX.equalTo(self.view)
            make.centerY.equalTo(self.view).offset(Adapter(100))
            make.height.equalTo(Adapter(50))
            make.width.equalTo(Adapter(200))
            
            
        }
        
        exa.sce.add(.touchUpInside) { (button) in
            let noGetProprietorCardViewController = NoGetProprietorCardViewController.init()
            self.navigationController?.pushViewController(noGetProprietorCardViewController, animated: true)
            
        }
        
        let contribution = UIButton()
        contribution.backgroundColor = .black
        contribution.setTitle("缴费", for: .normal)
        self.view.addSubview(contribution)
        contribution.snp.makeConstraints { (make) in
            make.centerX.equalTo(self.view)
            make.centerY.equalTo(self.view).offset(Adapter(-200))
            make.height.equalTo(Adapter(50))
            make.width.equalTo(Adapter(120))
            
            
        }
        contribution.sce.add(.touchUpInside) { (button) in
            let contributionListViewController = ContributionListViewController.init()
            self.navigationController?.pushViewController(contributionListViewController, animated: true)
            
        }
        
        
    }
    @objc func noGetCardPushAction(){
        let examineProprietorPositionViewController = ExamineProprietorPositionViewController.init()
        self.navigationController?.pushViewController(examineProprietorPositionViewController, animated: true)
    }
    
    
    
    
    
}
